﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="Season_Manager.ascx.cs"
    Inherits="NCS.Module.CMS.Admin.Sport.Season_Manager" %>
<%@ Register Assembly="NCS.Library" Namespace="NCS.Library.Controls"
    TagPrefix="cc1" %>
<table border="0" cellpadding="0" cellspacing="0" width="700px">
    <tr>
        <td colspan="2" align="center">
            <asp:Label ID="lbupdate" runat="server"></asp:Label></td>
    </tr>
    <tr><td colspan="2"><br /></td></tr>
    <tr>
        <td>
            Giải đấu</td>
        <td>
            <asp:TextBox ID="txtSeason" runat="server" Width="240px"></asp:TextBox>&nbsp;(ví
            dụ: Giải ngoại hạng Anh)</td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:CheckBox ID="chkhienthi" runat="server" Text="Hiển thị" /></td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            <asp:Button ID="btnAdd" runat="server" Text="Thêm mới" CssClass="Button" OnClick="btnAdd_Click" />
            &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" CssClass="Button" OnClick="btnUpdate_Click" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <br />
        </td>
    </tr>
    <tr>
        <td colspan="2" style="width:700px;">
            <cc1:GridView ID="dtgSeasonList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                BorderColor="Gainsboro" BorderStyle="Solid" BorderWidth="1px" CellPadding="2"
                CssClass="Grid" PageSize="15" Width="100%" OnRowCommand="dtgSeasonList_RowCommand"
                OnRowDataBound="dtgSeasonList_RowDataBound" OnRowDeleting="dtgSeasonList_RowDeleting">
                <AlternatingRowStyle CssClass="Grid_Raw2" />
                <RowStyle CssClass="Grid_Raw1" />
                <HeaderStyle Font-Bold="True" CssClass="Grid_Top"></HeaderStyle>
                <Columns>
                    <asp:BoundField Visible="true" DataField="Season_ID" HeaderText="ID">
                        <headerstyle width="0%"></headerstyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Giải đấu">
                        <headerstyle horizontalalign="Center"></headerstyle>
                        <itemtemplate>
									<asp:HyperLink ID="lnkseason" runat="server"></asp:HyperLink>
								</itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <headerstyle horizontalalign="Center" width="120px"></headerstyle>
                        <itemstyle horizontalalign="Center"></itemstyle>
                        <headertemplate>
									<asp:Button ID="cmdupdatestatus" CausesValidation="false" runat="server" Width="60" CommandName="updatestatus"
										CssClass="Button" Text="Trạng thái"></asp:Button>
								</headertemplate>
                        <itemtemplate>
									<asp:DropDownList ID="dropStatus" runat="server" Width="80">
									    <asp:ListItem Text="Ẩn" Value="0"></asp:ListItem>
									    <asp:ListItem Text="Hiển thị" Value="1"></asp:ListItem>
									</asp:DropDownList>
								</itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <headerstyle horizontalalign="Center" width="70px"></headerstyle>
                        <itemstyle horizontalalign="Center"></itemstyle>
                        <headertemplate>
									<asp:Button ID="cmdUpdateIndex" CausesValidation="false" runat="server" Width="60" CommandName="updatepriority"
										CssClass="Button" Text="Thứ tự"></asp:Button>
								</headertemplate>
                        <itemtemplate>
									<asp:DropDownList ID="dropIndex" runat="server" Width="60">
									</asp:DropDownList>
								</itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Thao t&#225;c">
                        <headerstyle horizontalalign="Center" width="150px"></headerstyle>
                        <itemstyle horizontalalign="Center"></itemstyle>
                        <itemtemplate>									
									<asp:Button ID="cmdEdit" CausesValidation="false" runat="server" CssClass="Button" CommandName="edit"
										Text="Sửa" CommandArgument='<%# Eval("Season_ID") %>'></asp:Button>
									<asp:Button ID="cmdDel" CausesValidation="false" runat="server" CssClass="Button" CommandName="delete"
										Text="Xóa" CommandArgument='<%# Eval("Season_ID") %>'></asp:Button>																		
								</itemtemplate>
                    </asp:TemplateField>
                </Columns>
            </cc1:GridView>
        </td>
    </tr>
</table>
